﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Linq;
using Microsoft.VisualStudio.TestTools.UnitTesting;
using AMatysiak.Methods;

namespace AMatysiakTest.Methods
{
    [TestClass]
    public class MoneyRoundTest
    {
        [TestMethod]
        public void roundOnePointZero()
        {
            double value = 1.0;
            double rounded = value.MoneyRound();

            Assert.AreEqual(1.0, rounded);
        }

        [TestMethod]
        public void roundByFive()
        {
            double value = 1.465;
            double rounded = value.MoneyRound();

            Assert.AreEqual(1.47, rounded);
        }
    }
}
